home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SHARED.cst
/
00025_Script_list scroll
< prev
next >
Wrap
Text File
|
2001-09-17
|
955b
|
39 lines
--∂ï
on scrollSetUp
global sList
global listTop,listBottom,sListing
set ListTop = 1
set ListBottom = 9
set sListing = ""
repeat with i = ListTop to ListBottom
set sListing = sListing&getAt(sList,i)&return
end repeat
set the text of cast "list" to sListing
end scrollSetUp
on listScroll scDir
global sList
global listTop,listBottom,sListing
set ListTop = ListTop+scDir
set ListBottom = ListTop+8
if ListTop < 1 then
set ListTop = 1
set ListBottom = ListTop+8
exit
end if
if listBottom > count(sList) then
set ListBottom = count(sList)
set ListTop = ListBottom-8
exit
end if
if scDir = 1 then
put line 2 to 9 of sListing&return&getAt(sList,listBottom) into sListing
else
if scDir = -1 then
put getAt(sList,listTop)&return&line 1 to 8 of sListing into sListing
end if
end if
set the text of cast "list" to sListing
end